/**
 * @Author: 陈瑞鹏
 * @Date:   2023-01-07 09:50:00
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2023-01-11 16:43:26
 */
import mongoose from "mongoose";

const Schema = mongoose.Schema;
const GSignSchema: mongoose.Schema = new Schema({
  roleId: { type: Number, display: "角色id", index: true },
  signArr: { type: Array, display: "签到数据" },
  signDay: { type: Number, display: "签到天数", default: 1 },
  updateTime: { type: String, display: '更新时间' },
  createTime: { type: String, display: '创建时间' },
}).index({ roleId: 1 });

const GSign = mongoose.model('GSign', GSignSchema);
export default GSign;